#ifndef CLOUDCLIENT_H
#define CLOUDCLIENT_H

#include <QWidget>
#include <QFile>
#include <QDebug>
#include <QTcpSocket>
#include <QMessageBox>
#include <QAbstractSocket>
#include "protocol.h"
#include <QString>


QT_BEGIN_NAMESPACE
namespace Ui {
class CloudClient;
}
QT_END_NAMESPACE

class CloudClient : public QWidget
{
    Q_OBJECT

public:
    CloudClient(QWidget *parent = nullptr);
    ~CloudClient();

    void loadConfigFile();

public slots:
    void connectSuccess();
    void connectError(QAbstractSocket::SocketError);

private slots:
    void on_pushButton_clicked();

private:
    Ui::CloudClient *ui;
    QString m_strIP;
    quint16 m_Port;
    QTcpSocket m_tcpSocket;
};
#endif // CLOUDCLIENT_H
